xxxxxxxxxx<center> <img src="https://cf-courses-data.s3.us.cloud-object-storage.appdomain.cloud/IBMDeveloperSkillsNetwork-DS0105EN-SkillsNetwork/labs/Module3/images/SN_web_lightmode.png" width="300" and height="auto"> </center><center> <img src="https://cf-courses-data.s3.us.cloud-object-storage.appdomain.cloud/IBMDeveloperSkillsNetwork-DS0105EN-SkillsNetwork/labs/Module3/images/SN_web_lightmode.png" width="300" and height="auto"> </center>### Hands-on Lab: Getting Started with Jupyter Notebooks**Duration: 10 mins**### ObjectiveIn this lab, you will perform basic tasks in the Jupyter notebook - - Add descriptive text and code- Execute and render the notebook#### Pre-requisites- **IBM Cloud account**Before proceeding with this lab, please ensure you have created a IBM Cloud trial account using the feature code provided to you within the course. If not please ensure you complete the previous lab: [IBM Cloud Account Setup](https://cf-courses-data.s3.us.cloud-object-storage.appdomain.cloud/IBM-CC0100EN-SkillsNetwork/labs/IBMCloud_accountCreation/CreateIBMCloudAccount.md.html).- **Setting up Watson Studio service and adding Jupyter notebook**After creating IBM Cloud account,you must create a Watson Studio service on IBM Cloud and add a Jupyter notebook to it. If not please ensure you complete the previous lab: [Creating a Watson Studio Project with Jupyter Notebooks](https://cf-courses-data.s3.us.cloud-object-storage.appdomain.cloud/IBMDeveloperSkillsNetwork-DS0105EN-SkillsNetwork/labs/Module3/DS0105EN-3-Lab_Creating_a_Watson_Studio_Project_with_Jupyter_Notebook.md.html?origin=www.coursera.org).#### Task : Add descriptive text and code to your Jupyter notebookIn this lab you will get started with Jypter notebook and learn how to add code and descriptive text to the cell. You will then execute and render the Jupyter notebook to see the final output.There are two main cell types that we will cover:A **code** cell contains code to be executed in the kernel. When the code is run, the notebook displays the output below the code cell that generated it.A **Markdown** cell contains text formatted using Markdown and displays text as output when the Markdown cell is executed.Now that you have an open Jupyter notebook in front of you, notice that there is a blank cell is already added to your notebook and there is a Kernel selection on top right corner that displays either Pythion or R version which you selected at the time of creating Jupyter notebook. 1. Enter the text in the cell as `This program prints Hello, World!`.2. Change the cell type to `Markdown`.3. Click the `Run` icon or press `Ctrl + Enter` on your keyboard. to run your code. This will render the text as output. <img src="https://cf-courses-data.s3.us.cloud-object-storage.appdomain.cloud/PqHEVe54s7kCXdzigok3SA/09-Watson-Studio-Lite-create-project11.png" width="80%" and height="auto">4. The result should look like this - <img src="https://cf-courses-data.s3.us.cloud-object-storage.appdomain.cloud/D_tflEkHEKnSfYFSWqjeWg/09-Watson-Studio-Lite-create-project11B.png" width="80%" and height="auto"> 5. To insert a new cell below this, click on the icon to the far right in the cell as shown below - <img src="https://cf-courses-data.s3.us.cloud-object-storage.appdomain.cloud/esWpgMW2NulsOQlc7CE48g/09-Watson-Studio-Lite-create-project11C.png" width="80%" and height="auto"> 6. Enter the text in the cell as `print('Hello, World!')`. Change the cell type to `Code`. <img src="https://cf-courses-data.s3.us.cloud-object-storage.appdomain.cloud/G4LITNiSQaQ3q0bfVPT-cQ/09-Watson-Studio-Lite-create-project12.png" width="80%" and height="auto"> 7. Again, click the `Run` icon or press `Ctrl + Enter` on your keyboard. to run your code.8. Your final Jupyter notebook appears as shown below - <img src="https://cf-courses-data.s3.us.cloud-object-storage.appdomain.cloud/_VlS9JKs1fSmi7O0fHiixA/09-Watson-Studio-Lite-create-project13.png" width="80%" and height="auto">This concludes this tutorial.For more details on creating Jupyter Notebook editor on IBM Watson Studio, please refer to this link - **[Quick start: Analyze data in a Jupyter notebook](https://dataplatform.cloud.ibm.com/docs/content/wsj/getting-started/get-started-analyze.html?utm_source=skills_network&utm_content=in_lab_content_link&utm_id=Lab-v2%2FM5_Final%2Flab2-iframe-import-notebook-r_v1_1727998081&context=cpdaas "Quick start: Analyze data in a Jupyter notebook")**.## Author(s)<h4> Shilpa Giridhar <h4/><!--## Changelog| Date | Version | Changed by | Change Description ||------|--------|--------|---------|| 2024-07-16 | 1.0 | Shilpa Giridhar |Added new content | ## <h3 align="center"> © IBM Corporation. All rights reserved. <h3/>--> <footer><img align="left" src="https://cf-courses-data.s3.us.cloud-object-storage.appdomain.cloud/IBMDeveloperSkillsNetwork-RP0321EN-SkillsNetwork/footer_logo_sn_ibm.png" alt="cognitiveclass.ai logo"> </footer>
Duration: 10 mins
In this lab, you will perform basic tasks in the Jupyter notebook -
Before proceeding with this lab, please ensure you have created a IBM Cloud trial account using the feature code provided to you within the course. If not please ensure you complete the previous lab: IBM Cloud Account Setup.
After creating IBM Cloud account,you must create a Watson Studio service on IBM Cloud and add a Jupyter notebook to it. If not please ensure you complete the previous lab: Creating a Watson Studio Project with Jupyter Notebooks.
In this lab you will get started with Jypter notebook and learn how to add code and descriptive text to the cell. You will then execute and render the Jupyter notebook to see the final output.
There are two main cell types that we will cover:
A code cell contains code to be executed in the kernel. When the code is run, the notebook displays the output below the code cell that generated it.
A Markdown cell contains text formatted using Markdown and displays text as output when the Markdown cell is executed.
Now that you have an open Jupyter notebook in front of you, notice that there is a blank cell is already added to your notebook and there is a Kernel selection on top right corner that displays either Pythion or R version which you selected at the time of creating Jupyter notebook.
Enter the text in the cell as This program prints Hello, World!.
Change the cell type to Markdown.
Click the Run icon or press Ctrl + Enter on your keyboard. to run your code. This will render the text as output.
The result should look like this -
To insert a new cell below this, click on the icon to the far right in the cell as shown below -
Enter the text in the cell as print('Hello, World!'). Change the cell type to Code.
Again, click the Run icon or press Ctrl + Enter on your keyboard. to run your code.
Your final Jupyter notebook appears as shown below -

This concludes this tutorial.
For more details on creating Jupyter Notebook editor on IBM Watson Studio, please refer to this link - Quick start: Analyze data in a Jupyter notebook.